package org.wenhuayuan.project.main.demo.demoDataItem;

import android.widget.ImageView;

import androidx.recyclerview.widget.RecyclerView;

import org.jetbrains.annotations.NotNull;
import org.wenhuayuan.project.main.R;
import org.wenhuayuan.uilibrary.hiitem.HiDataItem;

public class TopTabDataItem extends HiDataItem<ItemData, RecyclerView.ViewHolder> {
    public TopTabDataItem(ItemData itemData) {
        super(itemData);
    }

    @Override
    public void onBindData(@NotNull RecyclerView.ViewHolder holder, int position) {
        ImageView imgView = holder.itemView.findViewById(R.id.item_image);
        imgView.setImageResource(R.drawable.item_top_tab);
    }

    @Override
    public int getItemLayoutRes() {
        return R.layout.layout_list_item_top_tab;
    }
}
